home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample CSAM / Sources / SKEL•CSAM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  2.4 KB  |  80 lines  |  [TEXT/MPS ]

  1. /* ==========================================================================
  2.     Header file for the LDAP Directory Service Access Module.
  3.  
  4.     Written by: Gavin Eadie • The University of Michigan Information Systems
  5.           Phone: (313) 936-0816
  6.      AppleLink: A67
  7.       Internet: gavin@umich.edu
  8.          BITNET: USERGAV@UMICHUM
  9.     ==========================================================================    */
  10.  
  11.  
  12. #include "OCEAuthDir.h"
  13. #include "OCEErrors.h"
  14.  
  15. #include "Audit.h"
  16. #include "AuditMacros.h"
  17.  
  18. #define iconCount 7
  19. #define otherRStrID 5251
  20.  
  21. #define skelType 'Skel';
  22.  
  23. typedef struct Icon_Data {
  24.     Handle            iconHandle;            // Icon Handle
  25.     ResType            iconType;            // Icon Type
  26.     short                iconLength;            // Icon Length
  27. };
  28.  
  29. typedef struct MyDashGlobals {
  30.     QHdr                  CSAM_Q;
  31.  
  32.     struct Icon_Data Icon[iconCount];    // My Icons
  33.     Handle            ldap_User_Hdl;            // handle to locked "ldap User" (RString)
  34.     Handle            ldap_Group_Hdl;        // handle to locked "ldap Group" (RString)
  35.     Handle            ldap_Other_Hdl;        // handle to locked "ldap Other" (RString)
  36.  
  37.     char                LDAP_ServerName[48];    // Internet name of the server
  38.     char                LDAP_SearchBase[96];    // Internet name of the server
  39.     
  40.     CreationID        CSAM_CID;                // this CSAM CID
  41.     CreationID        Cat_CID;                    // this catalog CID
  42.     DirectoryName    Cat_Name;                // this catalog name
  43.     DirDiscriminator Cat_Disc;                // this catalog discriminator
  44.  
  45.     unsigned long    Delta_Count;            // incremented on every change to directory
  46.  
  47.     AuditPtr            Audit_Ptr;                // the audit pointer
  48. } MyDashGlobals, * MyDashGlobPtr;
  49.  
  50. /*    --------------------------------------------------------------------------
  51.         Set_Interrupt_Level • inline function
  52.         
  53.         Generates:
  54.                         Move SR,     D0
  55.                         Move 2(A7), SR
  56.         
  57.         Disable interrupts by:
  58.                 Old_PSW = Set_Interrupt_Level(0x2600);
  59.         
  60.         Restore by:
  61.                 Set_Interrupt_Level(Old_PSW);
  62.     --------------------------------------------------------------------------    */
  63. #if defined(powerc) || defined (__powerc)
  64. unsigned short Set_Interrupt_Level(unsigned short x);
  65.  
  66. unsigned long GetA5(void); 
  67. #else
  68. unsigned short Set_Interrupt_Level(unsigned short x) = {0x40C0, 0x46EF, 0x0002};
  69.  
  70. unsigned long GetA5(void) = 0x200d; 
  71. #endif
  72.  
  73. pascal OSErr CSAM_Procs(void * , DirParamBlockPtr , Boolean );
  74. pascal OSErr CSAM_Parse(void * , DirParamBlockPtr , Boolean );
  75.  
  76. OSErr Dir_Procs(register MyDashGlobals * , DirParamBlockPtr );
  77. OSErr Dir_Parse(register MyDashGlobals * , DirParamBlockPtr );
  78.  
  79. void io_Complete(void * , OSErr );
  80.